<style type="text/css">
    a:hover{color: green;
    }
    .arl{font-size: 20px;
         text-align: center;}
    </style>
    <h1><?php echo Yii::app()->user->name ?></h1>
    <a href="index.php?r=user/add" class="arl">register</a>
<a href="index.php?r=user/login" class="arl">login</a>
<a href="index.php?r=user/logout" class="arl">logout</a>
<br/>
<!--<a href="index.php?r=user/logout">logout</a>-->
<table style="width: auto; text-align:center">
    <?php foreach ($user as $oneuser) {
        ?>
        <tr style="border: 1px #333 solid" onmouseover="color:green">
            <td ><a style="text-decoration" href="index.php?r=user/viewUser&id=<?php echo $oneuser->id; ?>"><?php echo $oneuser->user_name; ?></a> </td>
            <td style="width:50px "><a style="text-decoration" href="index.php?r=user/update&id=<?php echo $oneuser->id; ?>"><button>update</button></a></td>
            <td style="width: 50px"><a style="text-decoration" href=index.php?r=user/delete&id=<?php echo $oneuser->id; ?>><button>delete</button></a></td>
        </tr>
    <?php } ?>
</table>